|
GET MATRIX HEIGHT
This command will return the matrix height at the specified grid point coordinate.
Return Float=GET MATRIX HEIGHT(Matrix Number, TileX, TileZ)
Matrix Number
Integer
The matrix number
TileX
Integer
The x grid position value are measured per tile, not per 3D space unit
TileZ
Integer
The y grid position value are measured per tile, not per 3D space unit
This command will return the matrix height at the specified grid point coordinate
Do not confuse the grid reference X and Z values with coordinate values. The grid reference values are measured per tile, not per 3D space unit. The matrix number and grid reference values should be integer values.
ink rgb(255,255,255),0
make matrix 1,1000,1000,25,25
prepare matrix texture 1,1,1,1
fill matrix 1,rnd(50),1
position matrix 1,0,0,0
set matrix height 1,10,10,200
update matrix 1
print "tile height at 10,10:";get matrix height(1, 10, 10)
do
loop
if matrix exist(1)=1 then delete matrix 1
end
MATRIX Commands Menu
Index
|